
const express = require('express') ;




const body = require('body-parser') ;


const app = express() ;

const router = express.Router() ;

router.get('/test1' , (req , res) => {
    res.send({code:1,msg:'测试代理成功ok1'})
})

router.get('/test2' , (req , res) => {
    res.send({code:1,msg:'测试代理成功ok2'})
})

router.get('/test3' , (req , res) => {
    res.send({code:1,msg:'测试代理成功ok3'})
})

router.get('/test4' , (req , res) => {
    res.send({code:1,msg:'测试代理成功ok4'})
})



// 配置接口文件
app.use('/api' , router)

app.listen(4000 , () => console.log('启动中...')) ;